<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
 */
//前台登录
//Route::get('/','Home\LoginController@getLogin');
Route::get('/', function () {
    return redirect('home/login/login');
 });

//后端默认登陆
Route::get('/admin', function () {
    return view('Admin/login');
});

//验证码路由
Route::get('captcha/{tmp}', 'BaseController@captcha');
//图片上传


//七牛云文件上传
Route::any('upload', 'BaseController@upload');

//七牛云文件删除
Route::any('delete', 'BaseController@delFile');

//七牛云获取文件显示
Route::any('getFile', 'BaseController@getFile');

//获取上传凭证和空间名
Route::any('getToken', 'BaseController@getToken');
/**
 * 后台
 */
Route::group(['prefix' => 'admin', 'namespace' => 'Admin'], function () {

    //页面显示
    Route::get('shareholders', 'CalculateController@Shareholders');
//    Route::get('weightingBonus', 'CalculateController@weightingBonus');
    Route::get('clearBonus', 'CalculateController@clearBonus');
//    Route::get('DT_shareholders', 'CalculateController@DT_Shareholders');
    Route::get('performance','CalculateController@performance');
    Route::get('calculate', 'CalculateController@calculate');
    Route::get('gradeMembers', 'CalculateController@GradeMembers');
    Route::get('dayBonus', 'CalculateController@dayBonus');
    Route::get('return_order', 'CalculateController@return_order');
    Route::get('clear', 'CalculateController@clear');
    Route::post('statistics','CalculateController@statistics');
    Route::get('setNumbers','CalculateController@setNumbers');
    Route::get('operate','CalculateController@operate');
    Route::get('import_member','CalculateController@import_member');
	//登录
	Route::group(['prefix' => 'login'], function () {
		//页面显示
		Route::get('login', 'LoginController@getLogin');
		//post
		Route::post('login', 'LoginController@login');
	});
//	Route::group(['middleware' => 'checkLogin'], function () {
    Route::group(['middleware' => 'auth:admin'], function(){
        Route::get('sfzImage/{image}', 'BaseController@getImages');//审核需要用户提交上来的身份证图片
		//后台商城
		Route::group(['prefix' => 'classify','middleware' => 'can:shop'], function () {
			//商品分类列表
			Route::get('shopClass', 'ShopGoodsClassifyController@Index');
			//商品分类添加视图
			Route::get('/getClassify', 'ShopGoodsClassifyController@GetAddClassify');
			//商品分类添加post
			Route::post('/classify', 'ShopGoodsClassifyController@PostAddClassify');
			//商品分类修改视图
			Route::get('/getEditClassify/{id}', 'ShopGoodsClassifyController@GetEditClassify');
			//商品分类修改post
			Route::post('/editClassify', 'ShopGoodsClassifyController@PostEditClassify');
			//商品分类删除
			Route::get('/delClassify/{id}', 'ShopGoodsClassifyController@DelClassify');

			//商品列表
			Route::get('/shop', 'GoodsController@Index');
            //商品规格页面
            Route::any('/specs', 'GoodsController@specs');
			//商品添加页面
			Route::get('/addGoods', 'GoodsController@addGoods');
			//商品
			Route::any('/goods', 'GoodsController@goods');

		});
		/**
		 * 商品管理
		 */
		Route::group(['prefix' => 'goods','middleware' => 'can:shop'], function () {
            //			//商品列表
//			Route::get('/shop', 'GoodsController@Index');
//			//商品添加
			Route::get('/addGoods', 'GoodsController@addGoods');
//            //抢购专区商品列表页面
//            Route::get('/shoppingIndex', 'GoodsController@shoppingIndex');
//            //抢购专区商品添加页面
//            Route::get('/shoppingAdd', 'GoodsController@shoppingAdd');
//            //抢购专区商品标记页面
//            Route::get('/shoppingEdit', 'GoodsController@shoppingEdit');
//            //抢购专区商品添加数据
//            Route::any('/shoppingList', 'GoodsController@shoppingList');
            // 案例列表页面
            Route::any('/caseClassifyList', 'GoodsController@caseClassifyList');
            // 案例列表页面
            Route::any('/caseClassifyAdd', 'GoodsController@caseClassifyAdd');

            // 案例数据接口
            Route::any('/caseClassify', 'GoodsController@caseClassify');
            // 案例列表页面
            Route::any('/caseList', 'GoodsController@caseList');
            // 案例列表页面
            Route::any('/caseAdd', 'GoodsController@caseAdd');

            // 案例数据接口
            Route::any('/caseIndex', 'GoodsController@caseIndex');
            // 源头厂家首页
            Route::get('/factory_index', 'GoodsController@factory_index');
            // 源头厂家添加
            Route::get('/add_factory', 'GoodsController@add_factory');
            // 源头厂家管理
            Route::any('/factory', 'GoodsController@factory');
            Route::any('/tutorIndex','GoodsController@tutorIndex');
            Route::any('/tutorList','GoodsController@tutorList');
            Route::any('/tutor','GoodsController@tutor');
		});
		/**
		 * 会员管理
		 */
		Route::group(['prefix' => 'members','middleware' => 'can:member'], function () {
            //团队查询
            Route::any('/findUsers','MemberController@findUsers');
		    //手机充值
            Route::get('/phonePay', 'MemberController@phonePay');
            //商品列表
            Route::get('/index', 'MemberController@index');
			//会员列表
			Route::any('/member', 'MemberController@member');
			//团队谱系
			Route::get('/prepaid' , 'MemberController@prepaid');
			Route::get('/team','MemberController@team');
			//我的伙伴myPartners
            Route::get('/myPartners','MemberController@myPartners');
			//代理商
			Route::get('/apply','MemberController@apply');
			Route::any('/doApply','MemberController@doApply');
            Route::get('/exportUser','MemberController@exportUser');
//            会员份额导出
            Route::get('/exportShare','MemberController@exportShare');
            //股东列表
            Route::get('/shareholder','MemberController@shareholder');
            Route::any('/doShareholders','MemberController@doShareholders');
            //开通超级商城
            Route::any('/openshop','MemberController@openShop');
            Route::any('/alter','MemberController@alter');
            Route::any('/alters','MemberController@alters');
            //个人购买面膜奖励
            Route::post('/getTotal','MemberController@getTotal');
            //临时购买面膜
            Route::any('/buyMask','MemberController@buyMask');
            //会员登陆审核列表
            Route::any('/user_examine','MemberController@user_examine');
            //会员登陆审核
            Route::any('/examine','MemberController@examine');
            //代理合伙人列表
            Route::any('/agentList','MemberController@agentList');
            //代理合伙人列表数据
            Route::any('/partnerList','MemberController@partnerList');
            //会场会员信息收集
            Route::get('/collectMessage','MemberController@collectMessage');
            Route::any('/getMessages','MemberController@getMessages');
            Route::any('/setTeamCount','MemberController@setTeamCount');
            //公司人员列表
            Route::any('/company','MemberController@company');
            //公司人员列表数据
            Route::any('/companyList','MemberController@companyList');
            Route::any('/my_team','MemberController@my_team');


		});
        /**
         * 会员充值
         */
        Route::group(['prefix' => 'members'], function () {
            //会员充值
            Route::any('/memberRecharge','MemberController@memberRecharge');
        });
        /**
         * 问题反馈
         */
        Route::group(['prefix' => 'feedback'], function () {
            //反馈视图
            Route::get('index','FeedbackController@index');
            Route::any('feedback','FeedbackController@feedback');
            Route::post('find','FeedbackController@find');
            Route::post('reply','FeedbackController@reply');
        });


		/**
		 * 订单管理
		 */
		Route::group(['prefix' => 'order','middleware' => 'can:order'], function () {
            //商品列表
            Route::get('/index', 'OrderController@index');
            //订单列表
            Route::any('/order', 'OrderController@order');
            //导出订单
            Route::get('/exportOrder', 'OrderController@exportOrder');
            //商品添加
            Route::get('/addGoods', 'GoodsController@addGoods');
            //撤回限时购订单
            Route::any('/cancelOrderMoney', 'OrderController@cancelOrderMoney');
            //订单撤回
            Route::any('/recallOrder','MemberController@recallOrder');
            //个人消费手动分红
            Route::any('/consumptionBonus','OrderController@consumptionBonus');
//            团队业绩分红
            Route::any('/weightingBonus','OrderController@weightingBonus');
            //订单业绩分红
            Route::any('/consumption','OrderController@consumption');

        });
        /**
         * 财务管理
         */
        Route::group(['prefix' => 'finance', 'can:finance'], function () {
            //提现列表
            Route::get('/withdrawlist', 'FinanceController@withdrawlist');
            //提现接口
            Route::any('/withdraw', 'FinanceController@withdraw');
            //交易明细
            Route::get('/transaction', 'FinanceController@transaction');
            //交易明细接口
            Route::any('/doTransaction', 'FinanceController@doTransaction');
            //充值记录
            Route::get('/recharge', 'FinanceController@recharge');
            //转账记录
            Route::get('/transfer', 'FinanceController@transfer');
            //分红记录
            Route::any('/bonusList','FinanceController@bonusList');
            //奖励记录
            Route::get('/rewards', 'FinanceController@rewards');
            //导出明细
            Route::any('/exportDetail', 'FinanceController@exportDetail');
            //分红记录
            Route::get('partnerRecord','FinanceController@partnerRecord');
            //
            Route::any('/getPartnerRecord','FinanceController@getPartnerRecord');
            //手动分红记录
            Route::any('/bonus','FinanceController@bonus');
            

        });
		//后台首页
		Route::get('index', 'IndexController@index');
		Route::any('doIndex','IndexController@doIndex');



		//系统设置
		Route::group(['prefix' => 'system'], function () {

			//管理员页面
			Route::get('index', 'SystemController@indexPage');
			//添加管理员页面
			Route::get('addUserPage', 'SystemController@addUserPage');
			//请求管理员列表
			Route::post('user', 'SystemController@getUser');
			//轮播图首页
			Route::get('bannerIndex', 'SystemController@bannerIndex');
			//添加轮播图
			Route::get('addBanner', 'SystemController@addBanner');
			//轮播图管理
            Route::any('banner', 'SystemController@banner');
            //设置合伙人分红
            Route::get('setShareholders','SystemController@setShareholders');
            //
            Route::any('shareholders','SystemController@shareholders');

			/*
			 * 公司管理
			 */
            Route::group(['middleware' => 'can:permissions'], function () {
                //分公司页面
                Route::get('branch', 'SystemController@branchPage');

                //添加分公司页面
                Route::get('branchPage', 'SystemController@addBranchPage');
                //添加分公司
                Route::get('addBranch', 'SystemController@addBranch');
            });

            //获取分公司数据
            Route::get('getBranch', 'SystemController@getBranch');
			//权限
			Route::any('permissions', 'SystemController@permissions');
			//获取权限列表
			Route::get('getPermissions', 'SystemController@getPermissions');

			//优品特选设置
            Route::any('setQuality', 'SystemController@setQuality');
//			//会员等级
//			Route::post('level', 'SystemController@memberLevel');
//			//微商城设置
//			Route::post('microMall', 'SystemController@microMall');
//			//系统设置
//			Route::post('system', 'SystemController@system');
//			//直商城设置
//			Route::post('shop', 'SystemController@shop');

            Route::group(['middleware' => 'can:system'], function () {
                Route::get('set', 'SystemController@set');
                //会员等级
                Route::post('level', 'SystemController@memberLevel');
                //微商城设置
                Route::post('microMall', 'SystemController@microMall');
                //超级微商城
                Route::post('exceedShop', 'SystemController@exceedShop');
                //系统设置
                Route::post('system', 'SystemController@system');
                //直商城设置
                Route::post('shop', 'SystemController@shop');
                //个人中心
                Route::get('center', 'SystemController@center');
                //系统公告
                Route::get('notice','SystemController@notice');
                //公告添加页面
                Route::get('addNotice','SystemController@addNotice');
                //公告设置
                Route::any('setNotice','SystemController@setNotice');
                //阅读设置
                Route::any('setRead','SystemController@setRead');
                //加权分红
                Route::any('setBonus', 'SystemController@setBonus');
                //直推加权
                Route::any('weighting','SystemController@weighting');
                //积分红包
                Route::any('bonusPoints','SystemController@bonusPoints');
                //发放业绩奖励
                Route::any('savePerformance','SystemController@savePerformance');

            });

            //个人中心设置
            Route::post('centerSet', 'SystemController@centerSet');
			//安全退出
			Route::get('LogOut', 'SystemController@LogOut');
            //日志记录
            Route::get('logs', 'SystemController@logs');
		});

		/*
		 * 员工账号
		 */
        Route::group(['middleware' => 'can:account'], function () {
            // 用户管理
            Route::get('/users', 'UserController@index');
            Route::get('/users/create', 'UserController@create');
            Route::post('/users/store', 'UserController@store');
            Route::any('/users/editUser', 'UserController@editUser');
            Route::get('/users/{user}/role', 'UserController@role');
            Route::post('/users/{user}/role', 'UserController@storeRole');
        });

        //权限管理
        Route::group(['middleware' => 'can:permissions'], function () {
            // 角色管理
            Route::get('/roles', 'RoleController@index');
            Route::get('/roles/create', 'RoleController@create');
            Route::post('/roles/store', 'RoleController@store');
            Route::get('/roles/{role}/permission', 'RoleController@permission');
            Route::post('/roles/{role}/permission', 'RoleController@storePermission');
            // 权限管理
            Route::any('/permissions', 'PermissionController@index');
            Route::get('/permissions/create', 'PermissionController@create');
            Route::post('/permissions/store', 'PermissionController@store');

        });
        //门店中心
        Route::group([ 'prefix' => 'stores', 'middleware' => 'can:storesorder' ], function () {
            //反馈视图
            Route::any('stores','StoresCenterController@Stores');
            Route::get('index','StoresCenterController@CenterIndex');
            Route::get('order','StoresCenterController@StoreOrder');
            Route::get('record','StoresCenterController@StoreRecord');
            Route::get('inventory','StoresCenterController@InventoryRecord');
            Route::get('exportStore', 'StoresCenterController@exportStore');
            Route::get('exportRecord', 'StoresCenterController@exportRecord');
            Route::get('exportReplenish', 'StoresCenterController@exportReplenish');
            Route::get('exportPurchase', 'StoresCenterController@exportPurchase');
            Route::get('purchase', 'StoresCenterController@purchase');
            Route::any('getPurchase', 'StoresCenterController@getPurchase');
            Route::get('replenish', 'StoresCenterController@replenish');
            Route::any('getReplenish', 'StoresCenterController@getReplenish');
        });

	});



});
/**
 * 前台
 */

//Route::get('index', '/Home/IndexController@index');
Route::group(['prefix' => 'home', 'namespace' => 'Home'], function () {

    //错误页面
    Route::get('error', 'LoginController@error');
    //二维码
    Route::get('impro', 'LoginController@impro');
    //系统升级
    Route::get('upgrade', 'LoginController@upgrade');
//    Route::get('addMember', 'MemberTestController@partnersaddMember');
//    Route::get('reduce', 'MemberTestController@reduce');
    //代理
    Route::get('daili', 'MemberTestController@daili');
    //登录
    Route::group(['prefix' => 'login'], function () {
        //页面显示
        Route::get('login', 'LoginController@getLogin');
        //post
        Route::post('login', 'LoginController@login');
        //登陆审核
        Route::any('authentication','LoginController@realNameAuthentication');
        
        //页面回显
        Route::any('realName', 'LoginController@realName');


        Route::get('remember', 'LoginController@remember');
        //会员注册页面
        Route::any('registerView', 'LoginController@registerView');
        //会员注册
        Route::any('register', 'LoginController@register');
        //现场活动信息录入
        Route::any('information', 'LoginController@information');
        //现场活动信息录入
        Route::any('InformationEntry', 'LoginController@InformationEntry');
        Route::any('success', 'LoginController@success');
    });
    //登录
    Route::group(['middleware' => 'homeLogin'], function () {

        //Index
        Route::group(['prefix' => 'index'], function () {
            //首页分类数据
            Route::any('classify', 'IndexController@category');
            //搜索框
            Route::any('search','IndexController@searchBox');
            //轮播图
            Route::any('banner','IndexController@banner');
            //特价专区商品分类
            Route::any('index_classify','IndexController@index_classify');
            //特价专区分类产品
            Route::any('getShopGoods','IndexController@getShopGoods');
            //商品分类
            Route::any('top','IndexController@top');
            //新人专区
            Route::any('newborn','IndexController@newborn');
            //复销专区
            Route::any('resale','IndexController@resale');
            //复销专区页面
            Route::get('resale_goods','IndexController@resale_goods');
            //商品分类页
            Route::get('sort_detail','IndexController@sort_detail');
            //商品分类页
            Route::any('special','IndexController@special');
            //特价
            Route::any('special_list','IndexController@special_list');
            //特价
            Route::any('tuike','IndexController@tuike');
            //推客联盟详情
            Route::any('tuike_det','IndexController@tuike_det');
            Route::any('tuike_det_data','IndexController@tuike_det_data');
            Route::any('tuike_list','IndexController@tuike_list');
            //特价
            Route::any('tuike_data','IndexController@tuike_data');
            //商品分类数据
            Route::any('sort_goods','IndexController@sort_goods');
            //案例首页
            Route::get('case','IndexController@case_index');
            //案例分类
            Route::any('case_classify','IndexController@case_classify');
            //分类下案例数据
            Route::any('get_case','IndexController@get_case');
            //案例详情
            Route::get('case_detail','IndexController@case_detail');
            //案例详情数据
            Route::any('getCaseDetail','IndexController@getCaseDetail');
            //案例搜索
            Route::get('search_case','IndexController@search_case');
            //案例搜索结果
            Route::any('search_result','IndexController@search_result');
            //源头厂家
            Route::get('factory','IndexController@factory');
            //厂家详情
            Route::get('factory_detail','IndexController@factory_detail');
            //厂家数据
            Route::any('get_factory','IndexController@get_factory');
            //导师页面
            Route::any('tutor','IndexController@tutor');
//            导师数据
            Route::any('tutorIndex','IndexController@tutorIndex');
            Route::any('throw_details','IndexController@throw_details');
            //供应链
            Route::any('supply','IndexController@supply');
            Route::any('token','IndexController@token');
            Route::any('classification','IndexController@classification');
            Route::any('goods_list','IndexController@goods_list');
            Route::any('details','IndexController@details');
            Route::any('goods_details','IndexController@goods_details');
            Route::any('goods_spec','IndexController@goods_spec');
            Route::any('order','IndexController@order');
            Route::any('supply_order','IndexController@supply_order');
            Route::any('my_order','IndexController@my_order');
            Route::any('order_details','IndexController@order_details');
            Route::any('supply_details','IndexController@supply_details');
            Route::any('supply_index','IndexController@supply_index');
            Route::any('supply_data','IndexController@supply_data');
            Route::any('supply_banner','IndexController@supply_banner');

            //复投产品
            Route::any('fu_index','IndexController@fu_index');
            Route::any('fu_list','IndexController@fu_list');
            Route::any('fu_details','IndexController@fu_details');

        });

        //直商城
        Route::group(['prefix' => 'straightShop'], function () {
            //页面显示
            Route::get('index', 'StraightShopController@index');
            //购买页面
            Route::get('product', 'StraightShopController@product');
            //订单
            Route::get('order', 'StraightShopController@order');
            //获取商品数据
            Route::post('goods', 'StraightShopController@goods');
        });
        //微商城
        Route::group(['prefix' => 'microShop'], function () {
            //页面显示
            Route::get('index', 'MicroShopController@index');
            //微商城商品
            Route::post('smallshop', 'MicroShopController@smallShop');
            //购买页面
            Route::get('productmicro', 'MicroShopController@productMicro');
            //购物车
            Route::post('car', 'MicroShopController@car');
            //订单操作
            Route::post('microorder', 'MicroShopController@microOrder');
            //特价商品详情页
            Route::get('microProduct', 'MicroShopController@microProduct');
            //支付页面
            Route::get('order', 'MicroShopController@order');
            //自提操作
            Route::any('pickSelf', 'MicroShopController@pickSelf');
            //支付
            Route::post('payorder', 'MicroShopController@payOrder');
            //阅读获得奖励
            Route::any('readUser','MemberController@readUser');

        });


        //超级商城 SuperShopController
        Route::group(['prefix' => 'superShop'], function () {
            //页面显示
            Route::get('index', 'SuperShopController@index');
            //购买页面
            Route::get('product', 'SuperShopController@product');
            //订单
            Route::get('order', 'SuperShopController@order');
            //获取商品数据
            Route::post('goods', 'SuperShopController@goods');
            //商品是否有规格
            Route::post('isSpecs','SuperShopController@isSpecs');



        });
        //优品特选
        Route::group(['prefix' => 'excellent'], function () {
            //页面显示
            Route::get('index', 'ExcellentController@index');
            //购买页面
            Route::get('product', 'ExcellentController@product');
            //生成订单
            Route::post('excellentOrder','ExcellentController@excellentOrder');
            //订单
            Route::get('order', 'ExcellentController@order');
            //获取商品数据
            Route::post('goods', 'ExcellentController@goods');
            //商品是否有规格
            Route::post('isSpecs','ExcellentController@isSpecs');


        });
        //限时购
        Route::group(['prefix' => 'timeShop'], function () {
            //页面显示
            Route::get('index', 'ShopController@index');
            //分类显示
            Route::any('goods', 'ShopController@goods');
            //商品详情页面
            Route::any('detil', 'ShopController@detil');
        //订单操作
        Route::any('order', 'ShopController@order');
        //            //提交订单
             Route::get('getOrder', 'ShopController@getOrder');
             //个人中心-订单详情
             Route::get('centerOrder', 'ShopController@centerOrder');
             //个人总业绩页面
             Route::get('total', 'ShopController@total');
             //个人总业绩
             Route::any('getTotal', 'ShopController@getTotal');
                    });


        //会员中心
        Route::group(['prefix' => 'member'], function () {
            //页面显示
            Route::get('index', 'MemberController@index');
            //新品
            Route::get('activity', 'MemberController@activity');
//            Route::any('addPerformance','MemberController@addPerformance');
            //个人资料
            Route::get('myuser', 'MemberController@myUser');
            //注册会员 直商城
            Route::get('registerUser', 'MemberController@registerUser');
            //门店查找
            Route::post('storeInformation', 'MemberController@storeInformation');
            //会员绑定门店查询
            Route::post('getUserBindNumber', 'MemberController@getUserBindNumber');
            //注册会员报单
            Route::post('doRegisterUser', 'MemberController@doRegisterUser');
            //报单价格计算
            Route::post('math_Register', 'MemberController@math_Register');
            //今日签到
            Route::get('sign', 'MemberController@sign');
            Route::post('dosign', 'MemberController@dosign');
            Route::post('findsign', 'MemberController@findsign');
            //我的二维码
            Route::get('myqrcode', 'MemberController@myQrCode');
            //我的二维码
            Route::get('myoreder', 'MemberController@myOreder');
            //购物车
            Route::get('shopcart', 'MemberController@shopCart');
            //添加我的收货地址
            Route::get('address', 'MemberController@address');
            //收货地址列表
            Route::get('addresslist', 'MemberController@addressList');
            //添加我的收货地址
            Route::post('addaddress', 'MemberController@AddAddress');
            //我的订单
            Route::any('myorder', 'MemberController@myOrder');
            //我的购物车
            Route::post('mycart', 'MemberController@myCart');
            //转账
            Route::get('transfer', 'MemberController@transfer');
            //转账
            Route::post('deposit', 'MemberController@deposit');
            //兑换
            Route::post('exchange', 'MemberController@exchange');
            //提现
            Route::get('withdraw', 'MemberController@withdraw');
            //提现申请
            Route::post('withdrawpay', 'MemberController@withdrawPay');
            //充值
            Route::any('recharge', 'MemberController@recharge');
            //提现申请
            Route::post('feeSetting', 'MemberController@feeSetting');
            //我的银行卡
            Route::get('banklist', 'MemberController@banklist');
            //添加银行卡
            Route::get('bank', 'MemberController@bank');
            //添加银行卡
            Route::post('addbank', 'MemberController@AddBank');
            //我的交易记录列表
            Route::get('myrecord', 'MemberController@myrecord');
            //交易记录详情
            Route::get('recordDetail', 'MemberController@recordDetail');
            //交易记录
            Route::any('record', 'MemberController@record');
            //商城伙伴列表
            Route::get('partnersList', 'MemberController@partnersList');
            //我的伙伴微商城、超级商城
            Route::get('myPartners', 'MemberController@myPartners');
            //我的下级伙伴
            Route::any('partners', 'MemberController@partners');
            //会员注册
            Route::get('register', 'MemberController@register');
            //获取用户资料
            Route::post('checkMemberInfo', 'MemberController@checkMemberInfo');
            //我的资料
            Route::get('userInfo', 'MemberController@userInfo');
            //修改用户资料
            Route::any('editInfo', 'MemberController@editInfo');
            //特价商城支付页
            Route::any('specialShop', 'MemberController@specialShop');
            //特价商城支付
            Route::any('excellentSpecial', 'MemberController@excellentSpecial');
            //修改登陆密码
            Route::any('loginPass', 'MemberController@loginPass');
            //修改支付密码
            Route::any('payPass', 'MemberController@payPass');
            //代理申请
            Route::get('apply', 'MemberController@apply');
            //财务管理
            Route::get('finance', 'MemberController@finance');
            Route::post('dofinance', 'MemberController@dofinance');
            Route::any('financeDetail', 'MemberController@financeDetail');
            //注册会员
            Route::post('enroll', 'MemberController@enroll');
            //优品特选下单
            Route::post('excellent', 'MemberController@excellentSelection');
            //微商城下单
            Route::post('addMicro', 'MemberController@addMicro');
            //超级商城下单
            Route::post('exMall', 'MemberController@exMall');
            //直商城会员升单处理页面
            Route::get('/justupgradeview','MemberController@JustUpgradeView');
            Route::any('justupgrade','MemberController@JustUpgrade');
            //开通超级商城
            Route::any('/openshop','MemberController@openShop');
            //将原开通直商城会员的复投币单独存储
            Route::any('/transform','MemberController@transform');
            //保单商品
            Route::any('/goods','MemberController@goods');
            //转账验证码
            Route::any('/yzx','MemberController@yzx');
            //提现验证码
            Route::any('/yzxSms','MemberController@yzxSms');
             //注册验证码
            Route::any('/registerSms','MemberController@registerSms');
            //代理分公司
            Route::any('/agent','MemberController@agent');
            //代理分公司
            Route::any('/agentList','MemberController@agentList');
            //代理分公司
            Route::any('/partner','MemberController@partner');
            //客户中心
            Route::get('/line','MemberController@line');
            //分红收益提醒
            Route::any('/estimate','MemberController@estimate');
            //我的团队
            Route::any('/team','MemberController@team');
        });

        //问题反馈
        Route::group(['prefix' => 'feedback'], function () {
            //反馈视图
            Route::get('index','FeedbackController@index');
            Route::post('add','FeedbackController@add');
            Route::post('find','FeedbackController@find');
        });
        //门店中心
        Route::group(['prefix' => 'stores'], function () {
            //反馈视图
            Route::get('index','StoresCenterController@CenterIndex');
            Route::post('stores','StoresCenterController@Stores');
            Route::get('order','StoresCenterController@StoresOrder');
            Route::get('ordercomment','StoresCenterController@orderComment');
            Route::get('deliver','StoresCenterController@deliver');
            Route::get('record','StoresCenterController@record');
            Route::get('inventory','StoresCenterController@inventory');
            Route::get('mystore','StoresCenterController@mystore');
            Route::get('friends','StoresCenterController@friends');
            Route::get('purchase','StoresCenterController@purchase');
            Route::get('purchaseRecord','StoresCenterController@purchaseRecord');
            Route::any('getPurchaseRecord','StoresCenterController@getPurchaseRecord');
            Route::any('getPurchase','StoresCenterController@getPurchase');
            Route::any('orderPage','StoresCenterController@orderPage');
            Route::any('purchaseDetail','StoresCenterController@purchaseDetail');
            Route::get('replenish','StoresCenterController@replenish');
            Route::any('getReplenish','StoresCenterController@getReplenish');
            Route::any('replenishRecord','StoresCenterController@replenishRecord');
            Route::any('getReplenishRecord','StoresCenterController@getReplenishRecord');

        });
        //直商城复投
        Route::group(['prefix' => 'voting'], function () {
            //反馈视图
            Route::get('voting','VotingController@voting');
            Route::post('votings','VotingController@votings');
        });
         //股东分润
         Route::group(['prefix' => 'shareholder'], function () {
            Route::get('shareholder','MemberController@Shareholders');
            Route::get('shareholderList','MemberController@ShareholderList');
            Route::get('shareholderDetail','MemberController@ShareholderDetail');
            Route::any('getShareholder','MemberController@getShareholder');
         });
         //区域代理分润
        Route::group(['prefix' => 'agentBonus'],function () {
            Route::get('index','MemberController@agentBonus');
            Route::get('bonusDetail','MemberController@bonusDetail');
            Route::any('getAgentBonus','MemberController@getAgentBonus');
        });
    });
     //系统公告
     Route::any('notice','MemberController@notice');
    //支付页面
    Route::get('orderpage', 'OrderController@orderPage');
    //支付页面 订单操作
    Route::post('order', 'OrderController@order');
    //订单详情
    Route::get('ordercomment', 'OrderController@orderComment');
    //个人中心统计
    Route::post('index', 'CenterController@index');
    //会员导入
    Route::get('lead', 'CenterController@to_lead');
    Route::get('test', 'CenterController@test');
    Route::get('test1', 'CenterController@test1');
    Route::get('area', 'CenterController@area');
    //退出登录
    Route::get('logout', 'CenterController@LogOut');

});
